
.tabs-layout {
  width: 100%;
  margin-bottom: 40px;
}

.tabs-item {
  width: 100%;
  display: none;

  &.tabs-layout {
    > .tabs-header {
      border: none;

      > li {
        &.active {
          border: none;
          color: #0a69bd;
          border-bottom: 1px solid #0a69bd;
        }

        &:hover {
          border: none;
          border-bottom: 1px solid #0a69bd;
        }
      }
    }
  }
}

div.tabs-item.active {
  display: block;
}

table.tabs-item.active {
  display: table;
}

.tabs-header {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid #cccccc;
  overflow: auto;
  margin: 10px 0 5px;
  display: flex;
  flex-direction: row;

  > li[data-index] {
    padding: 3px 10px;
    margin-left: 5px;
    cursor: pointer;
    color: #666;
    flex: 0 0 auto;

    &:hover,
    &.active {
      border: 1px solid #cccccc;
      border-bottom: none;
      color: #333;
    }
  }

  > li:not([data-index]) {
    flex: 1 1 auto;
    padding-left: 20px;
  }
}

.theme-dark {
  .tabs-header {
    border-bottom-color: #858585;

    > li[data-index] {
      color: #aaaaaa;

      &:hover,
      &.active {
        border-color: #858585;
        color: #dddddd;
      }
    }
  }
}
